home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_texinfo.idb / usr / freeware / info / texinfo-3.z / texinfo-3
Text File  |  2001-07-06  |  51KB  |  1,288 lines

  1. This is texinfo, produced by makeinfo version 4.0 from texinfo.txi.
  2.  
  3. INFO-DIR-SECTION Texinfo documentation system
  4. START-INFO-DIR-ENTRY
  5. * Texinfo: (texinfo).           The GNU documentation format.
  6. * install-info: (texinfo)Invoking install-info. Update info/dir entries.
  7. * texi2dvi: (texinfo)Format with texi2dvi.      Print Texinfo documents.
  8. * texindex: (texinfo)Format with tex/texindex.  Sort Texinfo index files.
  9. * makeinfo: (texinfo)makeinfo Preferred.        Translate Texinfo source.
  10. END-INFO-DIR-ENTRY
  11.  
  12.   This file documents Texinfo, a documentation system that can produce
  13. both online information and a printed manual from a single source file.
  14.  
  15.   Copyright (C) 1988, 90, 91, 92, 93, 95, 96, 97, 98, 99 Free Software
  16. Foundation, Inc.
  17.  
  18.   This edition is for Texinfo version 4.0, 28 September 1999.
  19.  
  20.   Permission is granted to make and distribute verbatim copies of this
  21. manual provided the copyright notice and this permission notice are
  22. preserved on all copies.
  23.  
  24.   Permission is granted to copy and distribute modified versions of this
  25. manual under the conditions for verbatim copying, provided that the
  26. entire resulting derived work is distributed under the terms of a
  27. permission notice identical to this one.
  28.  
  29.   Permission is granted to copy and distribute translations of this
  30. manual into another language, under the above conditions for modified
  31. versions, except that this permission notice may be stated in a
  32. translation approved by the Free Software Foundation.
  33.  
  34. 
  35. File: texinfo,  Node: setfilename,  Next: settitle,  Prev: Start of Header,  Up: Header
  36.  
  37. `@setfilename'
  38. --------------
  39.  
  40.   In order to serve as the primary input file for either `makeinfo' or
  41. TeX, a Texinfo file must contain a line that looks like this:
  42.  
  43.      @setfilename INFO-FILE-NAME
  44.  
  45.   Write the `@setfilename' command at the beginning of a line and
  46. follow it on the same line by the Info file name.  Do not write anything
  47. else on the line; anything on the line after the command is considered
  48. part of the file name, including what would otherwise be a comment.
  49.  
  50.   The `@setfilename' line specifies the name of the output file to be
  51. generated.  This name should be different from the name of the Texinfo
  52. file.  There are two conventions for choosing the name: you can either
  53. remove the extension (such as `.texi') from the input file name, or
  54. replace it with the `.info' extension.  When producing HTML output,
  55. `makeinfo' will replace any extension with `html', or add `.html' if
  56. the given name has no extension.
  57.  
  58.   Some operating systems cannot handle long file names.  You can run
  59. into a problem even when the file name you specify is itself short
  60. enough.  This occurs because the Info formatters split a long Info file
  61. into short indirect subfiles, and name them by appending `-1', `-2',
  62. ..., `-10', `-11', and so on, to the original file name.  (*Note Tag
  63. Files and Split Files: Tag and Split Files.)  The subfile name
  64. `texinfo.info-10', for example, is too long for some systems; so the
  65. Info file name for this document is `texinfo' rather than
  66. `texinfo.info'.  When `makeinfo' is running on operating systems such
  67. as MS-DOS which impose grave limits on file names, it will sometimes
  68. remove some characters from the original file name to leave enough
  69. space for the subfile suffix, thus producing files named `texin-10',
  70. `gcc.i12', etc.
  71.  
  72.   The Info formatting commands ignore everything written before the
  73. `@setfilename' line, which is why the very first line of the file (the
  74. `\input' line) does not show up in the output.
  75.  
  76.   The `@setfilename' line produces no output when you typeset a manual
  77. with TeX, but it is nevertheless essential: it opens the index,
  78. cross-reference, and other auxiliary files used by Texinfo, and also
  79. reads `texinfo.cnf' if that file is present on your system (*note
  80. Preparing for TeX: Preparing for TeX.).
  81.  
  82. 
  83. File: texinfo,  Node: settitle,  Next: setchapternewpage,  Prev: setfilename,  Up: Header
  84.  
  85. `@settitle'
  86. -----------
  87.  
  88.   In order to be made into a printed manual, a Texinfo file must contain
  89. a line that looks like this:
  90.  
  91.      @settitle TITLE
  92.  
  93.   Write the `@settitle' command at the beginning of a line and follow
  94. it on the same line by the title.  This tells TeX the title to use in a
  95. header or footer.  Do not write anything else on the line; anything on
  96. the line after the command is considered part of the title, including a
  97. comment.
  98.  
  99.   Conventionally, when TeX formats a Texinfo file for double-sided
  100. output, the title is printed in the left-hand (even-numbered) page
  101. headings and the current chapter title is printed in the right-hand
  102. (odd-numbered) page headings.  (TeX learns the title of each chapter
  103. from each `@chapter' command.)  Page footers are not printed.
  104.  
  105.   Even if you are printing in a single-sided style, TeX looks for an
  106. `@settitle' command line, in case you include the manual title in the
  107. heading.
  108.  
  109.   The `@settitle' command should precede everything that generates
  110. actual output in TeX.
  111.  
  112.   Although the title in the `@settitle' command is usually the same as
  113. the title on the title page, it does not affect the title as it appears
  114. on the title page.  Thus, the two do not need not match exactly;  and
  115. the title in the `@settitle' command can be a shortened or expanded
  116. version of the title as it appears on the title page. (*Note
  117. `@titlepage': titlepage.)
  118.  
  119.   TeX prints page headings only for that text that comes after the
  120. `@end titlepage' command in the Texinfo file, or that comes after an
  121. `@headings' command that turns on headings.  (*Note The `@headings'
  122. Command: headings on off, for more information.)
  123.  
  124.   You may, if you wish, create your own, customized headings and
  125. footings.  *Note Page Headings: Headings, for a detailed discussion of
  126. this process.
  127.  
  128. 
  129. File: texinfo,  Node: setchapternewpage,  Next: paragraphindent,  Prev: settitle,  Up: Header
  130.  
  131. `@setchapternewpage'
  132. --------------------
  133.  
  134.   In an officially bound book, text is usually printed on both sides of
  135. the paper, chapters start on right-hand pages, and right-hand pages have
  136. odd numbers.  But in short reports, text often is printed only on one
  137. side of the paper.  Also in short reports, chapters sometimes do not
  138. start on new pages, but are printed on the same page as the end of the
  139. preceding chapter, after a small amount of vertical whitespace.
  140.  
  141.   You can use the `@setchapternewpage' command with various arguments
  142. to specify how TeX should start chapters and whether it should format
  143. headers for printing on one or both sides of the paper (single-sided or
  144. double-sided printing).
  145.  
  146.   Write the `@setchapternewpage' command at the beginning of a line
  147. followed by its argument.
  148.  
  149.   For example, you would write the following to cause each chapter to
  150. start on a fresh odd-numbered page:
  151.  
  152.      @setchapternewpage odd
  153.  
  154.   You can specify one of three alternatives with the
  155. `@setchapternewpage' command:
  156.  
  157. `@setchapternewpage off'
  158.      Cause TeX to typeset a new chapter on the same page as the last
  159.      chapter, after skipping some vertical whitespace.  Also, cause TeX
  160.      to format page headers for single-sided printing. (You can
  161.      override the headers format with the `@headings double' command;
  162.      see *Note The `@headings' Command: headings on off.)
  163.  
  164. `@setchapternewpage on'
  165.      Cause TeX to start new chapters on new pages and to format page
  166.      headers for single-sided printing.  This is the form most often
  167.      used for short reports or personal printing.
  168.  
  169.      This alternative is the default.
  170.  
  171. `@setchapternewpage odd'
  172.      Cause TeX to start new chapters on new, odd-numbered pages
  173.      (right-handed pages) and to typeset for double-sided printing.
  174.      This is the form most often used for books and manuals.
  175.  
  176.   Texinfo does not have an `@setchapternewpage even' command.
  177.  
  178.   You can countermand or modify the effect on headers of an
  179. `@setchapternewpage' command with an `@headings' command.  *Note The
  180. `@headings' Command: headings on off.
  181.  
  182.   At the beginning of a manual or book, pages are not numbered--for
  183. example, the title and copyright pages of a book are not numbered.  By
  184. convention, table of contents pages are numbered with roman numerals
  185. and not in sequence with the rest of the document.
  186.  
  187.   Since an Info file does not have pages, the `@setchapternewpage'
  188. command has no effect on it.
  189.  
  190.   We recommend not including any `@setchapternewpage' command in your
  191. manual sources at all, since the desired output is not intrinsic to the
  192. document.  Instead, if you don't want the default option (no blank
  193. pages, same headers on all pages) use the `--texinfo' option to
  194. `texi2dvi' to specify the output you want.
  195.  
  196. 
  197. File: texinfo,  Node: paragraphindent,  Next: exampleindent,  Prev: setchapternewpage,  Up: Header
  198.  
  199. Paragraph Indenting
  200. -------------------
  201.  
  202.   The Texinfo processors may insert whitespace at the beginning of the
  203. first line of each paragraph, thereby indenting that paragraph.  You can
  204. use the `@paragraphindent' command to specify this indentation.  Write
  205. an `@paragraphindent' command at the beginning of a line followed by
  206. either `asis' or a number:
  207.  
  208.      @paragraphindent INDENT
  209.  
  210.   The indentation is according to the value of INDENT:
  211.  
  212. `asis'
  213.      Do not change the existing indentation (not implemented in TeX).
  214.  
  215. 0
  216.      Omit all indentation.
  217.  
  218. N
  219.      Indent by N space characters in Info output, by N ems in TeX.
  220.  
  221.   The default value of INDENT is `asis'.  `@paragraphindent' is ignored
  222. for HTML output.
  223.  
  224.   Write the `@paragraphindent' command before or shortly after the
  225. end-of-header line at the beginning of a Texinfo file.  (If you write
  226. the command between the start-of-header and end-of-header lines, the
  227. region formatting commands indent paragraphs as specified.)
  228.  
  229.   A peculiarity of the `texinfo-format-buffer' and
  230. `texinfo-format-region' commands is that they do not indent (nor fill)
  231. paragraphs that contain `@w' or `@*' commands.  *Note Refilling
  232. Paragraphs::, for further information.
  233.  
  234. 
  235. File: texinfo,  Node: exampleindent,  Next: End of Header,  Prev: paragraphindent,  Up: Header
  236.  
  237. `@exampleindent': Environment Indenting
  238. ---------------------------------------
  239.  
  240.   The Texinfo processors indent each line of `@example' and similar
  241. environments.  You can use the `@exampleindent' command to specify this
  242. indentation.  Write an `@exampleindent' command at the beginning of a
  243. line followed by either `asis' or a number:
  244.  
  245.      @exampleindent INDENT
  246.  
  247.   The indentation is according to the value of INDENT:
  248.  
  249. `asis'
  250.      Do not change the existing indentation (not implemented in TeX).
  251.  
  252. 0
  253.      Omit all indentation.
  254.  
  255. N
  256.      Indent environments by N space characters in Info output, by N ems
  257.      in TeX.
  258.  
  259.   The default value of INDENT is 5.  `@exampleindent' is ignored for
  260. HTML output.
  261.  
  262.   Write the `@exampleindent' command before or shortly after the
  263. end-of-header line at the beginning of a Texinfo file.  (If you write
  264. the command between the start-of-header and end-of-header lines, the
  265. region formatting commands indent examples as specified.)
  266.  
  267. 
  268. File: texinfo,  Node: End of Header,  Prev: exampleindent,  Up: Header
  269.  
  270. End of Header
  271. -------------
  272.  
  273.   Follow the header lines with an end-of-header line.  An end-of-header
  274. line looks like this:
  275.  
  276.      @c %**end of header
  277.  
  278.   If you include the `@setchapternewpage' command between the
  279. start-of-header and end-of-header lines, TeX will typeset a region as
  280. that command specifies.  Similarly, if you include an `@smallbook'
  281. command between the start-of-header and end-of-header lines, TeX will
  282. typeset a region in the "small" book format.
  283.  
  284.   The reason for the odd string of characters (`%**') is so that the
  285. `texinfo-tex-region' command does not accidentally find something that
  286. it should not when it is looking for the header.
  287.  
  288.   The start-of-header line and the end-of-header line are Texinfo mode
  289. variables that you can change.
  290.  
  291. 
  292. File: texinfo,  Node: Info Summary and Permissions,  Next: Titlepage & Copyright Page,  Prev: Header,  Up: Beginning a File
  293.  
  294. Summary and Copying Permissions for Info
  295. ========================================
  296.  
  297.   The title page and the copyright page appear only in the printed copy
  298. of the manual; therefore, the same information must be inserted in a
  299. section that appears only in the Info file.  This section usually
  300. contains a brief description of the contents of the Info file, a
  301. copyright notice, and copying permissions.
  302.  
  303.   The copyright notice should read:
  304.  
  305.      Copyright YEAR COPYRIGHT-OWNER
  306.  
  307. and be put on a line by itself.
  308.  
  309.   Standard text for the copyright permissions is contained in an
  310. appendix to this manual; see *Note `ifinfo' Copying Permissions: ifinfo
  311. Permissions, for the complete text.
  312.  
  313.   The permissions text appears in an Info file _before_ the first node.
  314. This mean that a reader does _not_ see this text when reading the file
  315. using Info, except when using the advanced Info command `g *'.
  316.  
  317. 
  318. File: texinfo,  Node: Titlepage & Copyright Page,  Next: The Top Node,  Prev: Info Summary and Permissions,  Up: Beginning a File
  319.  
  320. The Title and Copyright Pages
  321. =============================
  322.  
  323.   A manual's name and author are usually printed on a title page.
  324. Sometimes copyright information is printed on the title page as well;
  325. more often, copyright information is printed on the back of the title
  326. page.
  327.  
  328.   The title and copyright pages appear in the printed manual, but not
  329. in the Info file.  Because of this, it is possible to use several
  330. slightly obscure TeX typesetting commands that cannot be used in an
  331. Info file.  In addition, this part of the beginning of a Texinfo file
  332. contains the text of the copying permissions that will appear in the
  333. printed manual.
  334.  
  335.   You may wish to include titlepage-like information for plain text
  336. output.  Simply place any such leading material between `@ifinfo' and
  337. `@end ifinfo'; `makeinfo' includes this in its plain text output.  It
  338. will not show up in the Info readers.
  339.  
  340.   *Note Titlepage Copying Permissions: Titlepage Permissions, for the
  341. standard text for the copyright permissions.
  342.  
  343. * Menu:
  344.  
  345. * titlepage::                   Create a title for the printed document.
  346. * titlefont center sp::         The `@titlefont', `@center',
  347.                                   and `@sp' commands.
  348. * title subtitle author::       The `@title', `@subtitle',
  349.                                   and `@author' commands.
  350. * Copyright & Permissions::     How to write the copyright notice and
  351.                                   include copying permissions.
  352. * end titlepage::               Turn on page headings after the title and
  353.                                   copyright pages.
  354. * headings on off::             An option for turning headings on and off
  355.                                   and double or single sided printing.
  356.  
  357. 
  358. File: texinfo,  Node: titlepage,  Next: titlefont center sp,  Prev: Titlepage & Copyright Page,  Up: Titlepage & Copyright Page
  359.  
  360. `@titlepage'
  361. ------------
  362.  
  363.   Start the material for the title page and following copyright page
  364. with `@titlepage' on a line by itself and end it with `@end titlepage'
  365. on a line by itself.
  366.  
  367.   The `@end titlepage' command starts a new page and turns on page
  368. numbering.  (*Note Page Headings: Headings, for details about how to
  369. generate page headings.)  All the material that you want to appear on
  370. unnumbered pages should be put between the `@titlepage' and `@end
  371. titlepage' commands.  You can force the table of contents to appear
  372. there with the `@setcontentsaftertitlepage' command (*note Contents::).
  373.  
  374.   By using the `@page' command you can force a page break within the
  375. region delineated by the `@titlepage' and `@end titlepage' commands and
  376. thereby create more than one unnumbered page.  This is how the
  377. copyright page is produced.  (The `@titlepage' command might perhaps
  378. have been better named the `@titleandadditionalpages' command, but that
  379. would have been rather long!)
  380.  
  381.   When you write a manual about a computer program, you should write the
  382. version of the program to which the manual applies on the title page.
  383. If the manual changes more frequently than the program or is independent
  384. of it, you should also include an edition number(1) (*note
  385. titlepage-Footnote-1::) for the manual.  This helps readers keep track
  386. of which manual is for which version of the program.  (The `Top' node
  387. should also contain this information; see *Note `@top': makeinfo top.)
  388.  
  389.   Texinfo provides two main methods for creating a title page.  One
  390. method uses the `@titlefont', `@sp', and `@center' commands to generate
  391. a title page in which the words on the page are centered.
  392.  
  393.   The second method uses the `@title', `@subtitle', and `@author'
  394. commands to create a title page with black rules under the title and
  395. author lines and the subtitle text set flush to the right hand side of
  396. the page.  With this method, you do not specify any of the actual
  397. formatting of the title page.  You specify the text you want, and
  398. Texinfo does the formatting.
  399.  
  400.   You may use either method, or you may combine them; see the examples
  401. in the sections below.
  402.  
  403.   For extremely simple applications, and for the bastard title page in
  404. traditional book front matter, Texinfo also provides a command
  405. `@shorttitlepage' which takes a single argument as the title.  The
  406. argument is typeset on a page by itself and followed by a blank page.
  407.  
  408. 
  409. File: texinfo,  Node: titlepage-Footnotes,  Up: titlepage
  410.  
  411.   (1) We have found that it is helpful to refer to versions of manuals
  412. as `editions' and versions of programs as `versions'; otherwise, we
  413. find we are liable to confuse each other in conversation by referring
  414. to both the documentation and the software with the same words.
  415.  
  416. 
  417. File: texinfo,  Node: titlefont center sp,  Next: title subtitle author,  Prev: titlepage,  Up: Titlepage & Copyright Page
  418.  
  419. `@titlefont', `@center', and `@sp'
  420. ----------------------------------
  421.  
  422.   You can use the `@titlefont', `@sp', and `@center' commands to create
  423. a title page for a printed document.  (This is the first of the two
  424. methods for creating a title page in Texinfo.)
  425.  
  426.   Use the `@titlefont' command to select a large font suitable for the
  427. title itself.  You can use `@titlefont' more than once if you have an
  428. especially long title.
  429.  
  430.   For example:
  431.  
  432.      @titlefont{Texinfo}
  433.  
  434.   Use the `@center' command at the beginning of a line to center the
  435. remaining text on that line.  Thus,
  436.  
  437.      @center @titlefont{Texinfo}
  438.  
  439. centers the title, which in this example is "Texinfo" printed in the
  440. title font.
  441.  
  442.   Use the `@sp' command to insert vertical space.  For example:
  443.  
  444.      @sp 2
  445.  
  446. This inserts two blank lines on the printed page.  (*Note `@sp': sp,
  447. for more information about the `@sp' command.)
  448.  
  449.   A template for this method looks like this:
  450.  
  451.      @titlepage
  452.      @sp 10
  453.      @center @titlefont{NAME-OF-MANUAL-WHEN-PRINTED}
  454.      @sp 2
  455.      @center SUBTITLE-IF-ANY
  456.      @sp 2
  457.      @center AUTHOR
  458.      ...
  459.      @end titlepage
  460.  
  461.   The spacing of the example fits an 8.5 by 11 inch manual.
  462.  
  463. 
  464. File: texinfo,  Node: title subtitle author,  Next: Copyright & Permissions,  Prev: titlefont center sp,  Up: Titlepage & Copyright Page
  465.  
  466. `@title', `@subtitle', and `@author'
  467. ------------------------------------
  468.  
  469.   You can use the `@title', `@subtitle', and `@author' commands to
  470. create a title page in which the vertical and horizontal spacing is
  471. done for you automatically.  This contrasts with the method described
  472. in the previous section, in which the `@sp' command is needed to adjust
  473. vertical spacing.
  474.  
  475.   Write the `@title', `@subtitle', or `@author' commands at the
  476. beginning of a line followed by the title, subtitle, or author.
  477.  
  478.   The `@title' command produces a line in which the title is set flush
  479. to the left-hand side of the page in a larger than normal font.  The
  480. title is underlined with a black rule.  Only a single line is allowed;
  481. the `@*' command may not be used to break the title into two lines.  To
  482. handle very long titles, you may find it profitable to use both
  483. `@title' and `@titlefont'; see the final example in this section.
  484.  
  485.   The `@subtitle' command sets subtitles in a normal-sized font flush
  486. to the right-hand side of the page.
  487.  
  488.   The `@author' command sets the names of the author or authors in a
  489. middle-sized font flush to the left-hand side of the page on a line
  490. near the bottom of the title page.  The names are underlined with a
  491. black rule that is thinner than the rule that underlines the title.
  492. (The black rule only occurs if the `@author' command line is followed
  493. by an `@page' command line.)
  494.  
  495.   There are two ways to use the `@author' command: you can write the
  496. name or names on the remaining part of the line that starts with an
  497. `@author' command:
  498.  
  499.      @author by Jane Smith and John Doe
  500.  
  501. or you can write the names one above each other by using two (or more)
  502. `@author' commands:
  503.  
  504.      @author Jane Smith
  505.      @author John Doe
  506.  
  507. (Only the bottom name is underlined with a black rule.)
  508.  
  509.   A template for this method looks like this:
  510.  
  511.      @titlepage
  512.      @title NAME-OF-MANUAL-WHEN-PRINTED
  513.      @subtitle SUBTITLE-IF-ANY
  514.      @subtitle SECOND-SUBTITLE
  515.      @author AUTHOR
  516.      @page
  517.      ...
  518.      @end titlepage
  519.  
  520.   You may also combine the `@titlefont' method described in the
  521. previous section and `@title' method described in this one.  This may
  522. be useful if you have a very long title.  Here is a real-life example:
  523.  
  524.      @titlepage
  525.      @titlefont{GNU Software}
  526.      @sp 1
  527.      @title for MS-Windows and MS-DOS
  528.      @subtitle Edition @value{edition} for Release @value{cd-edition}
  529.      @author by Daniel Hagerty, Melissa Weisshaus
  530.      @author and Eli Zaretskii
  531.  
  532. (The use of `@value' here is explained in *Note `@value' Example: value
  533. Example.)
  534.  
  535. 
  536. File: texinfo,  Node: Copyright & Permissions,  Next: end titlepage,  Prev: title subtitle author,  Up: Titlepage & Copyright Page
  537.  
  538. Copyright Page and Permissions
  539. ------------------------------
  540.  
  541.   By international treaty, the copyright notice for a book should be
  542. either on the title page or on the back of the title page.  The
  543. copyright notice should include the year followed by the name of the
  544. organization or person who owns the copyright.
  545.  
  546.   When the copyright notice is on the back of the title page, that page
  547. is customarily not numbered.  Therefore, in Texinfo, the information on
  548. the copyright page should be within `@titlepage' and `@end titlepage'
  549. commands.
  550.  
  551.   Use the `@page' command to cause a page break.  To push the copyright
  552. notice and the other text on the copyright page towards the bottom of
  553. the page, you can write a somewhat mysterious line after the `@page'
  554. command that reads like this:
  555.  
  556.      @vskip 0pt plus 1filll
  557.  
  558. This is a TeX command that is not supported by the Info formatting
  559. commands.  The `@vskip' command inserts whitespace.  The `0pt plus
  560. 1filll' means to put in zero points of mandatory whitespace, and as
  561. much optional whitespace as needed to push the following text to the
  562. bottom of the page.  Note the use of three `l's in the word `filll';
  563. this is the correct usage in TeX.
  564.  
  565.   In a printed manual, the `@copyright{}' command generates a `c'
  566. inside a circle.  (In Info, it generates `(C)'.)  The copyright notice
  567. itself has the following legally defined sequence:
  568.  
  569.      Copyright (C) YEAR COPYRIGHT-OWNER
  570.  
  571.   It is customary to put information on how to get a manual after the
  572. copyright notice, followed by the copying permissions for the manual.
  573.  
  574.   Permissions must be given here as well as in the summary segment
  575. within `@ifinfo' and `@end ifinfo' that immediately follows the header
  576. since this text appears only in the printed manual and the `ifinfo'
  577. text appears only in the Info file.
  578.  
  579.   *Note Sample Permissions::, for the standard text.
  580.  
  581. 
  582. File: texinfo,  Node: end titlepage,  Next: headings on off,  Prev: Copyright & Permissions,  Up: Titlepage & Copyright Page
  583.  
  584. Heading Generation
  585. ------------------
  586.  
  587.   An `@end titlepage' command on a line by itself not only marks the
  588. end of the title and copyright pages, but also causes TeX to start
  589. generating page headings and page numbers.
  590.  
  591.   To repeat what is said elsewhere,  Texinfo has two standard page
  592. heading formats, one for documents which are printed on one side of
  593. each sheet of paper (single-sided printing), and the other for
  594. documents which are printed on both sides of each sheet (double-sided
  595. printing).  (*Note `@setchapternewpage': setchapternewpage.)  You can
  596. specify these formats in different ways:
  597.  
  598.    * The conventional way is to write an `@setchapternewpage' command
  599.      before the title page commands, and then have the `@end titlepage'
  600.      command start generating page headings in the manner desired.
  601.      (*Note `@setchapternewpage': setchapternewpage.)
  602.  
  603.    * Alternatively, you can use the `@headings' command to prevent page
  604.      headings from being generated or to start them for either single or
  605.      double-sided printing.  (Write an `@headings' command immediately
  606.      after the `@end titlepage' command.  *Note The `@headings'
  607.      Command: headings on off, for more information.)
  608.  
  609.    * Or, you may specify your own page heading and footing format.
  610.      *Note Page Headings: Headings, for detailed information about page
  611.      headings and footings.
  612.  
  613.   Most documents are formatted with the standard single-sided or
  614. double-sided format, using `@setchapternewpage odd' for double-sided
  615. printing and no `@setchapternewpage' command for single-sided printing.
  616.  
  617. 
  618. File: texinfo,  Node: headings on off,  Prev: end titlepage,  Up: Titlepage & Copyright Page
  619.  
  620. The `@headings' Command
  621. -----------------------
  622.  
  623.   The `@headings' command is rarely used.  It specifies what kind of
  624. page headings and footings to print on each page.  Usually, this is
  625. controlled by the `@setchapternewpage' command.  You need the
  626. `@headings' command only if the `@setchapternewpage' command does not
  627. do what you want, or if you want to turn off pre-defined page headings
  628. prior to defining your own.  Write an `@headings' command immediately
  629. after the `@end titlepage' command.
  630.  
  631.   You can use `@headings' as follows:
  632.  
  633. `@headings off'
  634.      Turn off printing of page headings.
  635.  
  636. `@headings single'
  637.      Turn on page headings appropriate for single-sided printing.
  638.  
  639. `@headings double'
  640. `@headings on'
  641.      Turn on page headings appropriate for double-sided printing.  The
  642.      two commands, `@headings on' and `@headings double', are
  643.      synonymous.
  644.  
  645. `@headings singleafter'
  646. `@headings doubleafter'
  647.      Turn on `single' or `double' headings, respectively, after the
  648.      current page is output.
  649.  
  650. `@headings on'
  651.      Turn on page headings: `single' if `@setchapternewpage on',
  652.      `double' otherwise.
  653.  
  654.   For example, suppose you write `@setchapternewpage off' before the
  655. `@titlepage' command to tell TeX to start a new chapter on the same
  656. page as the end of the last chapter.  This command also causes TeX to
  657. typeset page headers for single-sided printing.  To cause TeX to
  658. typeset for double sided printing, write `@headings double' after the
  659. `@end titlepage' command.
  660.  
  661.   You can stop TeX from generating any page headings at all by writing
  662. `@headings off' on a line of its own immediately after the line
  663. containing the `@end titlepage' command, like this:
  664.  
  665.      @end titlepage
  666.      @headings off
  667.  
  668. The `@headings off' command overrides the `@end titlepage' command,
  669. which would otherwise cause TeX to print page headings.
  670.  
  671.   You can also specify your own style of page heading and footing.
  672. *Note Page Headings: Headings, for more information.
  673.  
  674. 
  675. File: texinfo,  Node: The Top Node,  Next: Software Copying Permissions,  Prev: Titlepage & Copyright Page,  Up: Beginning a File
  676.  
  677. The `Top' Node and Master Menu
  678. ==============================
  679.  
  680.   The `Top' node is the node from which you enter an Info file.
  681.  
  682.   A `Top' node should contain a brief description of the Info file and
  683. an extensive, master menu for the whole Info file.  This helps the
  684. reader understand what the Info file is about.  Also, you should write
  685. the version number of the program to which the Info file applies; or,
  686. at least, the edition number.
  687.  
  688.   The contents of the `Top' node should appear only in the Info file;
  689. none of it should appear in printed output, so enclose it between
  690. `@ifinfo' and `@end ifinfo' commands.  (TeX does not print either an
  691. `@node' line or a menu; they appear only in Info; strictly speaking,
  692. you are not required to enclose these parts between `@ifinfo' and `@end
  693. ifinfo', but it is simplest to do so.  *Note Conditionally Visible
  694. Text: Conditionals.)
  695.  
  696. * Menu:
  697.  
  698. * Title of Top Node::           Sketch what the file is about.
  699. * Master Menu Parts::           A master menu has three or more parts.
  700.  
  701. 
  702. File: texinfo,  Node: Title of Top Node,  Next: Master Menu Parts,  Up: The Top Node
  703.  
  704. `Top' Node Title
  705. ----------------
  706.  
  707.   Sometimes, you will want to place an `@top' sectioning command line
  708. containing the title of the document immediately after the `@node Top'
  709. line (*note The `@top' Sectioning Command: makeinfo top command., for
  710. more information).
  711.  
  712.   For example, the beginning of the Top node of this manual contains an
  713. `@top' sectioning command, a short description, and edition and version
  714. information.  It looks like this:
  715.  
  716.      ...
  717.      @end titlepage
  718.      
  719.      @ifnottex
  720.      @node Top, Copying, , (dir)
  721.      @top Texinfo
  722.      
  723.      Texinfo is a documentation system...
  724.      
  725.      This is edition...
  726.      ...
  727.      @end ifnottex
  728.      
  729.      @menu
  730.      * Copying::                 Texinfo is freely
  731.                                    redistributable.
  732.      * Overview::                What is Texinfo?
  733.      ...
  734.      @end menu
  735.  
  736.   In a `Top' node, the `Previous', and `Up' nodes usually refer to the
  737. top level directory of the whole Info system, which is called `(dir)'.
  738. The `Next' node refers to the first node that follows the main or master
  739. menu, which is usually the copying permissions, introduction, or first
  740. chapter.
  741.  
  742. 
  743. File: texinfo,  Node: Master Menu Parts,  Prev: Title of Top Node,  Up: The Top Node
  744.  
  745. Parts of a Master Menu
  746. ----------------------
  747.  
  748.   A "master menu" is a detailed main menu listing all the nodes in a
  749. file.
  750.  
  751.   A master menu is enclosed in `@menu' and `@end menu' commands and
  752. does not appear in the printed document.
  753.  
  754.   Generally, a master menu is divided into parts.
  755.  
  756.    * The first part contains the major nodes in the Texinfo file: the
  757.      nodes for the chapters, chapter-like sections, and the appendices.
  758.  
  759.    * The second part contains nodes for the indices.
  760.  
  761.    * The third and subsequent parts contain a listing of the other,
  762.      lower level nodes, often ordered by chapter.  This way, rather
  763.      than go through an intermediary menu, an inquirer can go directly
  764.      to a particular node when searching for specific information.
  765.      These menu items are not required; add them if you think they are a
  766.      convenience.  If you do use them, put `@detailmenu' before the
  767.      first one, and `@end detailmenu' after the last; otherwise,
  768.      `makeinfo' will get confused.
  769.  
  770.   Each section in the menu can be introduced by a descriptive line.  So
  771. long as the line does not begin with an asterisk, it will not be
  772. treated as a menu entry.  (*Note Writing a Menu::, for more
  773. information.)
  774.  
  775.   For example, the master menu for this manual looks like the following
  776. (but has many more entries):
  777.  
  778.      @menu
  779.      * Copying::             Texinfo is freely
  780.                                redistributable.
  781.      * Overview::            What is Texinfo?
  782.      * Texinfo Mode::        Special features in GNU Emacs.
  783.      ...
  784.      ...
  785.      * Command and Variable Index::
  786.                              An entry for each @-command.
  787.      * Concept Index::       An entry for each concept.
  788.      
  789.      @detailmenu
  790.       --- The Detailed Node Listing ---
  791.      
  792.      Overview of Texinfo
  793.      
  794.      * Info Files::          What is an Info file?
  795.      * Printed Manuals::     Characteristics of
  796.                                a printed manual.
  797.      ...
  798.      ...
  799.      
  800.      Using Texinfo Mode
  801.      
  802.      * Info on a Region::    Formatting part of a file
  803.                                for Info.
  804.      ...
  805.      ...
  806.      @end detailmenu
  807.      @end menu
  808.  
  809. 
  810. File: texinfo,  Node: Software Copying Permissions,  Prev: The Top Node,  Up: Beginning a File
  811.  
  812. Software Copying Permissions
  813. ============================
  814.  
  815.   If the Texinfo file has a section containing the "General Public
  816. License" and the distribution information and a warranty disclaimer for
  817. the software that is documented, this section usually follows the `Top'
  818. node.  The General Public License is very important to Project GNU
  819. software.  It ensures that you and others will continue to have a right
  820. to use and share the software.
  821.  
  822.   The copying and distribution information and the disclaimer are
  823. followed by an introduction or else by the first chapter of the manual.
  824.  
  825.   Although an introduction is not a required part of a Texinfo file, it
  826. is very helpful.  Ideally, it should state clearly and concisely what
  827. the file is about and who would be interested in reading it.  In
  828. general, an introduction would follow the licensing and distribution
  829. information, although sometimes people put it earlier in the document.
  830. Usually, an introduction is put in an `@unnumbered' section.  (*Note
  831. The `@unnumbered' and `@appendix' Commands: unnumbered & appendix.)
  832.  
  833. 
  834. File: texinfo,  Node: Ending a File,  Next: Structuring,  Prev: Beginning a File,  Up: Top
  835.  
  836. Ending a Texinfo File
  837. *********************
  838.  
  839.   The end of a Texinfo file should include commands to create indices
  840. and (usually) to generate detailed and summary tables of contents.  And
  841. it must include the `@bye' command that marks the last line processed
  842. by TeX.
  843.  
  844.   For example:
  845.  
  846.      @node    Concept Index,     , Variables Index, Top
  847.      @c        node-name,    next, previous,        up
  848.      @unnumbered Concept Index
  849.      
  850.      @printindex cp
  851.      
  852.      @contents
  853.      @bye
  854.  
  855. * Menu:
  856.  
  857. * Printing Indices & Menus::    How to print an index in hardcopy and
  858.                                   generate index menus in Info.
  859. * Contents::                    How to create a table of contents.
  860. * File End::                    How to mark the end of a file.
  861.  
  862. 
  863. File: texinfo,  Node: Printing Indices & Menus,  Next: Contents,  Prev: Ending a File,  Up: Ending a File
  864.  
  865. Index Menus and Printing an Index
  866. =================================
  867.  
  868.   To print an index means to include it as part of a manual or Info
  869. file.  This does not happen automatically just because you use
  870. `@cindex' or other index-entry generating commands in the Texinfo file;
  871. those just cause the raw data for the index to be accumulated.  To
  872. generate an index, you must include the `@printindex' command at the
  873. place in the document where you want the index to appear.  Also, as
  874. part of the process of creating a printed manual, you must run a
  875. program called `texindex' (*note Hardcopy::) to sort the raw data to
  876. produce a sorted index file.  The sorted index file is what is actually
  877. used to print the index.
  878.  
  879.   Texinfo offers six different types of predefined index: the concept
  880. index, the function index, the variables index, the keystroke index, the
  881. program index, and the data type index (*note Predefined Indices::).
  882. Each index type has a two-letter name: `cp', `fn', `vr', `ky', `pg',
  883. and `tp'.  You may merge indices, or put them into separate sections
  884. (*note Combining Indices::); or you may define your own indices (*note
  885. Defining New Indices: New Indices.).
  886.  
  887.   The `@printindex' command takes a two-letter index name, reads the
  888. corresponding sorted index file and formats it appropriately into an
  889. index.
  890.  
  891.   The `@printindex' command does not generate a chapter heading for the
  892. index.  Consequently, you should precede the `@printindex' command with
  893. a suitable section or chapter command (usually `@unnumbered') to supply
  894. the chapter heading and put the index into the table of contents.
  895. Precede the `@unnumbered' command with an `@node' line.
  896.  
  897.   For example:
  898.  
  899.      @node Variable Index, Concept Index, Function Index, Top
  900.      @comment    node-name,         next,       previous, up
  901.      @unnumbered Variable Index
  902.      
  903.      @printindex vr
  904.      
  905.      @node     Concept Index,     , Variable Index, Top
  906.      @comment      node-name, next,       previous, up
  907.      @unnumbered Concept Index
  908.      
  909.      @printindex cp
  910.  
  911. Readers often prefer that the concept index come last in a book, since
  912. that makes it easiest to find.  Having just one index helps readers
  913. also, since then they have only one place to look (*note synindex::).
  914.  
  915. 
  916. File: texinfo,  Node: Contents,  Next: File End,  Prev: Printing Indices & Menus,  Up: Ending a File
  917.  
  918. Generating a Table of Contents
  919. ==============================
  920.  
  921.   The `@chapter', `@section', and other structuring commands supply the
  922. information to make up a table of contents, but they do not cause an
  923. actual table to appear in the manual.  To do this, you must use the
  924. `@contents' and/or `@summarycontents' command(s).
  925.  
  926. `@contents'
  927.      Generate a table of contents in a printed manual, including all
  928.      chapters, sections, subsections, etc., as well as appendices and
  929.      unnumbered chapters.  (Headings generated by the `@heading' series
  930.      of commands do not appear in the table of contents.)
  931.  
  932. `@shortcontents'
  933. `@summarycontents'
  934.      (`@summarycontents' is a synonym for `@shortcontents'; the two
  935.      commands are exactly the same.)
  936.  
  937.      Generate a short or summary table of contents that lists only the
  938.      chapters (and appendices and unnumbered chapters).  Omit sections,
  939.      subsections and subsubsections.  Only a long manual needs a short
  940.      table of contents in addition to the full table of contents.
  941.  
  942.   Both contents commands should be written on a line by themselves.
  943. The contents commands automatically generate a chapter-like heading at
  944. the top of the first table of contents page, so don't include any
  945. sectioning command such as `@unnumbered' before them.
  946.  
  947.   Since an Info file uses menus instead of tables of contents, the Info
  948. formatting commands ignore the contents commands.  But the contents are
  949. included in plain text output (generated by `makeinfo --no-headers').
  950.  
  951.   The contents commands can be placed either at the very end of the
  952. file, after any indices (see the previous section) and just before the
  953. `@bye' (see the next section), or near the beginning of the file, after
  954. the `@end titlepage' (*note titlepage::).  The advantage to the former
  955. is that then the contents output is always up to date, because it
  956. reflects the processing just done.  The advantage to the latter is that
  957. the contents are printed in the proper place, thus you do not need to
  958. rearrange the DVI file with `dviselect' or shuffle paper.  However,
  959. contents commands at the beginning of the document are ignored when
  960. outputting to standard output.
  961.  
  962.   As an author, you can put the contents commands wherever you prefer.
  963. But if you are a user simply printing a manual, you may wish to print
  964. the contents after the title page even if the author put the contents
  965. commands at the end of the document (as is the case in most existing
  966. Texinfo documents).  You can do this by specifying
  967. `@setcontentsaftertitlepage' and/or `@setshortcontentsaftertitlepage'.
  968. The first prints only the main contents after the `@end titlepage'; the
  969. second prints both the short contents and the main contents.  In either
  970. case, any subsequent `@contents' or `@shortcontents' is ignored (unless
  971. no `@end titlepage' is ever encountered).
  972.  
  973.   You need to include the `@set...contentsaftertitlepage' commands
  974. early in the document (just after `@setfilename', for example).  Or, if
  975. you're using `texi2dvi' (*note Format with texi2dvi::), you can use its
  976. `--texinfo' option to specify this without altering the source file at
  977. all.  For example:
  978.      texi2dvi --texinfo=@setshortcontentsaftertitlepage foo.texi
  979.  
  980. 
  981. File: texinfo,  Node: File End,  Prev: Contents,  Up: Ending a File
  982.  
  983. `@bye' File Ending
  984. ==================
  985.  
  986.   An `@bye' command terminates TeX or Info formatting.  None of the
  987. formatting commands see any of the file following `@bye'.  The `@bye'
  988. command should be on a line by itself.
  989.  
  990.   If you wish, you may follow the `@bye' line with notes. These notes
  991. will not be formatted and will not appear in either Info or a printed
  992. manual; it is as if text after `@bye' were within `@ignore' ... `@end
  993. ignore'.  Also, you may follow the `@bye' line with a local variables
  994. list.  *Note Using Local Variables and the Compile Command:
  995. Compile-Command, for more information.
  996.  
  997. 
  998. File: texinfo,  Node: Structuring,  Next: Nodes,  Prev: Ending a File,  Up: Top
  999.  
  1000. Chapter Structuring
  1001. *******************
  1002.  
  1003.   The "chapter structuring" commands divide a document into a hierarchy
  1004. of chapters, sections, subsections, and subsubsections.  These commands
  1005. generate large headings; they also provide information for the table of
  1006. contents of a printed manual (*note Generating a Table of Contents:
  1007. Contents.).
  1008.  
  1009.   The chapter structuring commands do not create an Info node structure,
  1010. so normally you should put an `@node' command immediately before each
  1011. chapter structuring command (*note Nodes::).  The only time you are
  1012. likely to use the chapter structuring commands without using the node
  1013. structuring commands is if you are writing a document that contains no
  1014. cross references and will never be transformed into Info format.
  1015.  
  1016.   It is unlikely that you will ever write a Texinfo file that is
  1017. intended only as an Info file and not as a printable document.  If you
  1018. do, you might still use chapter structuring commands to create a
  1019. heading at the top of each node--but you don't need to.
  1020.  
  1021. * Menu:
  1022.  
  1023. * Tree Structuring::            A manual is like an upside down tree ...
  1024. * Structuring Command Types::   How to divide a manual into parts.
  1025. * makeinfo top::                The `@top' command, part of the `Top' node.
  1026. * chapter::
  1027. * unnumbered & appendix::
  1028. * majorheading & chapheading::
  1029. * section::
  1030. * unnumberedsec appendixsec heading::
  1031. * subsection::
  1032. * unnumberedsubsec appendixsubsec subheading::
  1033. * subsubsection::               Commands for the lowest level sections.
  1034. * Raise/lower sections::        How to change commands' hierarchical level.
  1035.  
  1036. 
  1037. File: texinfo,  Node: Tree Structuring,  Next: Structuring Command Types,  Up: Structuring
  1038.  
  1039. Tree Structure of Sections
  1040. ==========================
  1041.  
  1042.   A Texinfo file is usually structured like a book with chapters,
  1043. sections, subsections, and the like.  This structure can be visualized
  1044. as a tree (or rather as an upside-down tree) with the root at the top
  1045. and the levels corresponding to chapters, sections, subsection, and
  1046. subsubsections.
  1047.  
  1048.   Here is a diagram that shows a Texinfo file with three chapters, each
  1049. of which has two sections.
  1050.  
  1051.                                Top
  1052.                                 |
  1053.               -------------------------------------
  1054.              |                  |                  |
  1055.           Chapter 1          Chapter 2          Chapter 3
  1056.              |                  |                  |
  1057.           --------           --------           --------
  1058.          |        |         |        |         |        |
  1059.       Section  Section   Section  Section   Section  Section
  1060.         1.1      1.2       2.1      2.2       3.1      3.2
  1061.  
  1062.   In a Texinfo file that has this structure, the beginning of Chapter 2
  1063. looks like this:
  1064.  
  1065.      @node    Chapter 2,  Chapter 3, Chapter 1, top
  1066.      @chapter Chapter 2
  1067.  
  1068.   The chapter structuring commands are described in the sections that
  1069. follow; the `@node' and `@menu' commands are described in following
  1070. chapters. (*Note Nodes::, and see *Note Menus::.)
  1071.  
  1072. 
  1073. File: texinfo,  Node: Structuring Command Types,  Next: makeinfo top,  Prev: Tree Structuring,  Up: Structuring
  1074.  
  1075. Structuring Command Types
  1076. =========================
  1077.  
  1078.   The chapter structuring commands fall into four groups or series, each
  1079. of which contains structuring commands corresponding to the
  1080. hierarchical levels of chapters, sections, subsections, and
  1081. subsubsections.
  1082.  
  1083.   The four groups are the `@chapter' series, the `@unnumbered' series,
  1084. the `@appendix' series, and the `@heading' series.
  1085.  
  1086.   Each command produces titles that have a different appearance on the
  1087. printed page or Info file; only some of the commands produce titles
  1088. that are listed in the table of contents of a printed book or manual.
  1089.  
  1090.    * The `@chapter' and `@appendix' series of commands produce numbered
  1091.      or lettered entries both in the body of a printed work and in its
  1092.      table of contents.
  1093.  
  1094.    * The `@unnumbered' series of commands produce unnumbered entries
  1095.      both in the body of a printed work and in its table of contents.
  1096.      The `@top' command, which has a special use, is a member of this
  1097.      series (*note `@top': makeinfo top.).
  1098.  
  1099.    * The `@heading' series of commands produce unnumbered headings that
  1100.      do not appear in a table of contents.  The heading commands never
  1101.      start a new page.
  1102.  
  1103.    * The `@majorheading' command produces results similar to using the
  1104.      `@chapheading' command but generates a larger vertical whitespace
  1105.      before the heading.
  1106.  
  1107.    * When an `@setchapternewpage' command says to do so, the
  1108.      `@chapter', `@unnumbered', and `@appendix' commands start new
  1109.      pages in the printed manual; the `@heading' commands do not.
  1110.  
  1111.   Here are the four groups of chapter structuring commands:
  1112.  
  1113.                                                             No new page
  1114. Numbered       Unnumbered             Lettered and numbered Unnumbered
  1115. In contents    In contents            In contents           Not in contents
  1116.                `@top'                                       `@majorheading'
  1117. `@chapter'     `@unnumbered'          `@appendix'           `@chapheading'
  1118. `@section'     `@unnumberedsec'       `@appendixsec'        `@heading'
  1119. `@subsection'  `@unnumberedsubsec'    `@appendixsubsec'     `@subheading'
  1120. `@subsubsection'`@unnumberedsubsubsec' `@appendixsubsubsec'  `@subsubheading'
  1121.  
  1122. 
  1123. File: texinfo,  Node: makeinfo top,  Next: chapter,  Prev: Structuring Command Types,  Up: Structuring
  1124.  
  1125. `@top'
  1126. ======
  1127.  
  1128.   The `@top' command is a special sectioning command that you use only
  1129. after an `@node Top' line at the beginning of a Texinfo file.  The
  1130. `@top' command tells the `makeinfo' formatter which node is the `Top'
  1131. node, so it can use it as the root of the node tree if your manual uses
  1132. implicit pointers.  It has the same typesetting effect as `@unnumbered'
  1133. (*note `@unnumbered' and `@appendix': unnumbered & appendix.).  For
  1134. detailed information, see *Note The `@top' Command: makeinfo top
  1135. command.
  1136.  
  1137.   The `@top' node and its menu (if any) is conventionally wrapped in an
  1138. `@ifnottex' conditional so that it will appear only in Info and HTML
  1139. output, not TeX.
  1140.  
  1141. 
  1142. File: texinfo,  Node: chapter,  Next: unnumbered & appendix,  Prev: makeinfo top,  Up: Structuring
  1143.  
  1144. `@chapter'
  1145. ==========
  1146.  
  1147.   `@chapter' identifies a chapter in the document.  Write the command
  1148. at the beginning of a line and follow it on the same line by the title
  1149. of the chapter.
  1150.  
  1151.   For example, this chapter in this manual is entitled "Chapter
  1152. Structuring"; the `@chapter' line looks like this:
  1153.  
  1154.      @chapter Chapter Structuring
  1155.  
  1156.   In TeX, the `@chapter' command creates a chapter in the document,
  1157. specifying the chapter title.  The chapter is numbered automatically.
  1158.  
  1159.   In Info, the `@chapter' command causes the title to appear on a line
  1160. by itself, with a line of asterisks inserted underneath.  Thus, in
  1161. Info, the above example produces the following output:
  1162.  
  1163.      Chapter Structuring
  1164.      *******************
  1165.  
  1166.   Texinfo also provides a command `@centerchap', which is analogous to
  1167. `@unnumbered', but centers its argument in the printed output.  This
  1168. kind of stylistic choice is not usually offered by Texinfo.
  1169.  
  1170. 
  1171. File: texinfo,  Node: unnumbered & appendix,  Next: majorheading & chapheading,  Prev: chapter,  Up: Structuring
  1172.  
  1173. `@unnumbered' and `@appendix'
  1174. =============================
  1175.  
  1176.   Use the `@unnumbered' command to create a chapter that appears in a
  1177. printed manual without chapter numbers of any kind.  Use the
  1178. `@appendix' command to create an appendix in a printed manual that is
  1179. labelled by letter instead of by number.
  1180.  
  1181.   For Info file output, the `@unnumbered' and `@appendix' commands are
  1182. equivalent to `@chapter': the title is printed on a line by itself with
  1183. a line of asterisks underneath.  (*Note `@chapter': chapter.)
  1184.  
  1185.   To create an appendix or an unnumbered chapter, write an `@appendix'
  1186. or `@unnumbered' command at the beginning of a line and follow it on
  1187. the same line by the title, as you would if you were creating a chapter.
  1188.  
  1189. 
  1190. File: texinfo,  Node: majorheading & chapheading,  Next: section,  Prev: unnumbered & appendix,  Up: Structuring
  1191.  
  1192. `@majorheading', `@chapheading'
  1193. ===============================
  1194.  
  1195.   The `@majorheading' and `@chapheading' commands put chapter-like
  1196. headings in the body of a document.
  1197.  
  1198.   However, neither command causes TeX to produce a numbered heading or
  1199. an entry in the table of contents; and neither command causes TeX to
  1200. start a new page in a printed manual.
  1201.  
  1202.   In TeX, an `@majorheading' command generates a larger vertical
  1203. whitespace before the heading than an `@chapheading' command but is
  1204. otherwise the same.
  1205.  
  1206.   In Info, the `@majorheading' and `@chapheading' commands are
  1207. equivalent to `@chapter': the title is printed on a line by itself with
  1208. a line of asterisks underneath.  (*Note `@chapter': chapter.)
  1209.  
  1210. 
  1211. File: texinfo,  Node: section,  Next: unnumberedsec appendixsec heading,  Prev: majorheading & chapheading,  Up: Structuring
  1212.  
  1213. `@section'
  1214. ==========
  1215.  
  1216.   In a printed manual, an `@section' command identifies a numbered
  1217. section within a chapter.  The section title appears in the table of
  1218. contents.  In Info, an `@section' command provides a title for a
  1219. segment of text, underlined with `='.
  1220.  
  1221.   This section is headed with an `@section' command and looks like this
  1222. in the Texinfo file:
  1223.  
  1224.      @section @code{@@section}
  1225.  
  1226.   To create a section, write the `@section' command at the beginning of
  1227. a line and follow it on the same line by the section title.
  1228.  
  1229.   Thus,
  1230.  
  1231.      @section This is a section
  1232.  
  1233. produces
  1234.  
  1235.      This is a section
  1236.      =================
  1237.  
  1238. in Info.
  1239.  
  1240. 
  1241. File: texinfo,  Node: unnumberedsec appendixsec heading,  Next: subsection,  Prev: section,  Up: Structuring
  1242.  
  1243. `@unnumberedsec', `@appendixsec', `@heading'
  1244. ============================================
  1245.  
  1246.   The `@unnumberedsec', `@appendixsec', and `@heading' commands are,
  1247. respectively, the unnumbered, appendix-like, and heading-like
  1248. equivalents of the `@section' command.  (*Note `@section': section.)
  1249.  
  1250. `@unnumberedsec'
  1251.      The `@unnumberedsec' command may be used within an unnumbered
  1252.      chapter or within a regular chapter or appendix to provide an
  1253.      unnumbered section.
  1254.  
  1255. `@appendixsec'
  1256. `@appendixsection'
  1257.      `@appendixsection' is a longer spelling of the `@appendixsec'
  1258.      command; the two are synonymous.
  1259.  
  1260.      Conventionally, the `@appendixsec' or `@appendixsection' command
  1261.      is used only within appendices.
  1262.  
  1263. `@heading'
  1264.      You may use the `@heading' command anywhere you wish for a
  1265.      section-style heading that will not appear in the table of
  1266.      contents.
  1267.  
  1268. 
  1269. File: texinfo,  Node: subsection,  Next: unnumberedsubsec appendixsubsec subheading,  Prev: unnumberedsec appendixsec heading,  Up: Structuring
  1270.  
  1271. The `@subsection' Command
  1272. =========================
  1273.  
  1274.   Subsections are to sections as sections are to chapters.  (*Note
  1275. `@section': section.)  In Info, subsection titles are underlined with
  1276. `-'.  For example,
  1277.  
  1278.      @subsection This is a subsection
  1279.  
  1280. produces
  1281.  
  1282.      This is a subsection
  1283.      --------------------
  1284.  
  1285.   In a printed manual, subsections are listed in the table of contents
  1286. and are numbered three levels deep.
  1287.  
  1288.